package com.martian.mapper;

import com.martian.pojo.entity.MovieRating;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface DataLoaderMapper {
    void insertMovieData(int movieId,String movieName,String movieGenres,String movieReleasedYear,String moviePhotoUrl);

    void insertRatingData(int userId, int movieId, float rating, Date ratingTime);

    void updateUserData(int userId, String userName, String userPassword,String salt);

    void loadMovieAvgRating();
}
